<%@page contentType="text/html; charset=UTF-8"%>
<%@page pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="java.text.*" %>
<%@ page import="java.io.*" %>

<%@page import="orest.common.valueobject.ColumnAccessLogVal"%>
<%@page import="orest.common.dao.ColumnAccessLogDao"%>
<%@page import="orest.front.UserSessionAction"%>
<%@page import="orest.common.valueobject.UserSessionInfo"%>


<%  
    UserSessionAction userSession = new UserSessionAction();
    UserSessionInfo sessionInfo = userSession.findSessionObject(request);
    String userid="";
    String usertype="";
    if (sessionInfo != null){
        userid = sessionInfo.getUserID();
        usertype = sessionInfo.getUserType();  
    }
        
    request.setCharacterEncoding("gbk");
    String ColumnID = request.getParameter("ColumnID");
    String ColumnName = request.getParameter("ColumnName");
    String ColumnInfoID = request.getParameter("ColumnInfoID");
    String ColumnInfoName = request.getParameter("ColumnInfoName");    
    String ip = request.getRemoteAddr();    
    ColumnAccessLogDao obj = new ColumnAccessLogDao ();                                                
    ColumnAccessLogVal logval = new ColumnAccessLogVal(ColumnID,ColumnName,ColumnInfoID,ColumnInfoName,usertype,userid,ip);
                                                   
    boolean result = obj.addUserAccessRecord(logval);
    out.println (result);
    obj = null;
%>
